package com.hikvision.tcm.controller;

import com.hikvision.tcm.feign.TestWebFeign;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author :jianghui
 * @date : 2022/10/29 23:42
 */
@RestController
@RequestMapping("/feign")
public class TcmFeignController {

    @Resource
    TestWebFeign testWebFeign ;

    @GetMapping("/send")
    public String sendWeb() {
        System.out.println("发送web");
        return testWebFeign.receive();
    }

}
